package cn.xo68.boot.auth.server.domain;


import java.util.Date;



/** 
 * OauthToken 实体
 * @author wuyy(16349023@qq.com)
 * @date 2018年08月26日 16:31:14
 *
 */
public class OauthToken implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;

	/**
	 * 令牌
	 */
	private String token;
	/**
	 * 用户id
	 */
	private String userId;
	private String account;
	private String userName;
	/**
	 * 客户端id
	 */
	private String clientId;
	/**
	 * 客户端名称
	 */
	private String clientName;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 过期时间
	 */
	private Date expireTime;
	/**
	 * 刷新令牌
	 */
	private String refreshToken;
	
	@Override
	public String toString(){
		return "token:"+this.token+","+"userId:"+this.userId+","+"account:"+this.account+","+"userName:"+this.userName+","+"clientId:"+this.clientId+","+"clientName:"+this.clientName+","+"createTime:"+this.createTime+","+"expireTime:"+this.expireTime;
	}
	

	public String getToken() {
		return this.token;
	}
	public void setToken(String value) {
		this.token = value;
	}	

	public String getUserId() {
		return this.userId;
	}
	public void setUserId(String value) {
		this.userId = value;
	}	

	public String getAccount() {
		return this.account;
	}
	public void setAccount(String value) {
		this.account = value;
	}	

	public String getUserName() {
		return this.userName;
	}
	public void setUserName(String value) {
		this.userName = value;
	}	

	public String getClientId() {
		return this.clientId;
	}
	public void setClientId(String value) {
		this.clientId = value;
	}	

	public String getClientName() {
		return this.clientName;
	}
	public void setClientName(String value) {
		this.clientName = value;
	}	

	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date value) {
		this.createTime = value;
	}	

	public Date getExpireTime() {
		return this.expireTime;
	}
	public void setExpireTime(Date value) {
		this.expireTime = value;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}
}